<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::app()->name;?> 后台管理</title>
<?php $this->renderPartial('/_include/_header');?>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/static/common/js/jquery.SuperSlide.2.1.js"></script>
</head>
<body class="view_index" id="view_index_Article">

<table class="view-index-list" border="0" cellspacing="0" cellpadding="0" width="100%">
    <thead>
        <tr>
                        <th width="30" align="left">编号</th>
                        <th align="left" width="150">评论人姓名</th>
                        <th align="left">评论内容</th>
                        <th width="100" align="left">员工号</th>
                        <th align="left">单位</th>
                        <th align="left" width="80">认证</th>
                        <th align="center" width="130">微信号</th>

        </tr>
    </thead>
    <tbody>
        <?php
		
    foreach($data as $k=>$v){

    ?>
    <tr>
        <td><?php echo $v['replyid'];?></td>
        <td><?php echo $v['username'];?></td>
        <td><?php echo $v['content'];?></td>
        <td><?php echo $v['staffno'];?></td>
        <td><?php echo $v['sign'];?></td>
        <td><?php echo $v['vmember'];?></td>
        <td><?php echo $v['nickname'];?></td>
        <?php
                  
}
?>    </tr>

        </tbody>
    
</table>
<?php echo "<input type='hidden' id='dnm' value='$outputFileName'>"?> 


<script>
function toxls(){
    var n = encodeURI($("#dnm").val());
	window.open(projectName+'/uploads/data2xls/'+n);
	return false;
}

$(function(){	

	$('table').addClass('view-index-list');
	
    var api = art.dialog.open.api;
	//alert(api);

    //操作对话框
	
    api.button(
		{
			name: '下载xls文件',
			callback: function () {
				toxls();
				return false;
			},
			focus: true
		},
		{
			name: '取消'
		}
		/*, 更多按钮.. */
	)
	// 锁屏
	.lock();
	

});
</script>

<?php $this->renderPartial('/_include/_footer');?></body>
</html>